#!/bin/bash

# create openvpn image
docker build -t apollozhu/tengine:v1 .

export CONF_PATH="nginx"

# Initialize the $CONF_PATH container that will hold the configuration files and certificates
docker volume create --name $CONF_PATH
docker run \
    --name tengine \
    -v $CONF_PATH:/usr/local/nginx/conf \
    -p 6060:80 \
    -d apollozhu/tengine:v1
